package com.spatio.serving.basic.service.template.common.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author GuoPengfei
 * @Date 2024/6/3 18:56
 */
@Data
public class QuestionUpdateReq {

    @NotEmpty(message = "idempotent_id cant be empty")
    @JsonProperty("idempotent_id")
    private String idempotentId;

    @NotNull(message = "question_id can not be null")
    @Min(value = 1, message = "question_id must be greater than 0")
    @JsonProperty("question_id")
    private Long questionId;

    @NotNull(message = "question_voice_url can not be null")
    @JsonProperty("question_voice_url")
    private String questionVoiceUrl;

    @NotNull(message = "answer_voice_url can not be null")
    @JsonProperty("answer_voice_url")
    private String answerVoiceUrl;
}